How to easily recognize whether stream is video or image [ffmpeg library]

Posted by inazaruk on Stack Overflow See other posts from Stack Overflow or by inazaruk
Published on 2009-05-14T11:21:18Z Indexed on 2010/06/13 11:02 UTC
Read the original article Hit count: 115

Filed under:
|
|
|

Having an AVStream object how should I reliably distinguish whether this is video or image stream?

I've tried to use duration. If it's 0 - we are having image (system constraints allows for such assumption). But it turns out that duration have special meaning for images - the number of images stored in file.

Is there any tricks to detect image stream more reliably?

© Stack Overflow or respective owner

Related posts about image

Related posts about video